package com.core.model.lxf;

/**
 * Created with IntelliJ IDEA.
 * User: xianfei
 * Date: 15-12-25
 * Time: 下午2:41
 * To change this template use File | Settings | File Templates.
 */
public class Child extends Parent {

    private static String child;

    static {
        System.out.println("child 静态块");
        System.out.println("child 静态块后：" + child);
        child = "child";
    }

    public Child() {
        System.out.println("child 构造器");
        System.out.println("child 构造器后：" + child);
        childMethod();
    }

    public void childMethod() {
        System.out.println("child 方法");
        System.out.println("child 方法后：" + child);
    }

}
